/*
@Project:SpringBoot
@Date:2023/3/17
@FileName:Student.java
@Create:Ya Potato
@IDE:IntelliJ IDEA 2023.1
@version:JDK 1.8
*/

package com.itheima.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.*;

@Component
public class Student {
    @Value("${person.id}")
    private int id;

    @Value("${person.name}")
    private String name;
    private List hobby;
    private String[] family;
    private Map map;
    private Pet pet;

    @Override
    public String toString(){
        return "Student{" +
                "id=" + id +
                ", name=" + name + '\'' +
                ", hobby=" + hobby +
                ", family=" + Arrays.toString(family) +
                ", map=" + map +
                ", pet=" + pet +"}";
    }
}
